import { resolve } from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueSetupExtend from 'vite-plugin-vue-setup-extend-plus';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(), // name可以写在script上
    vueSetupExtend(),
  ],
  resolve: {
    alias: {
      '@': resolve('./src'),
    },
  },
  server: {
    port: 3000,
  },
});
